(ns use-fx-clj.example
  (:require [fx-clj.core :as fx])
  (:import (javafx.application Platform)))

(defn create-view []
  (fx/h-box
    (fx/button {:on-action (fn [e] (println "Hello World!"))
                :text      "Click Me!"})))

(Platform/setImplicitExit true)
(fx/sandbox #'create-view)